# 定义ATM类
class ATM:
    def __init__(self, number, bank, zh):
        self.number = number
        self.bank = bank
        self.zh = zh

    def sum(self, num1, num2):
        print(self.bank)
        return num1 + num2


# 创建两个ATM对象
atm1 = ATM("001", "中国银行", "南园支行")
atm2 = ATM("002", "招商银行", "江浦支行")

# 打印其中一个对象中的参数值
print(atm1.number + " ---> " + atm1.bank)
print(atm1.sum(1, 2))

